package com.mallify.admin.service;

import com.mallify.common.request.SystemAdminLoginRequest;
import com.mallify.common.response.MenusResponse;
import com.mallify.common.response.SystemAdminResponse;
import com.mallify.common.response.SystemLoginResponse;

import java.util.List;

/**
 * 管理端登录服务
 * +----------------------------------------------------------------------
 * | HANSON [ HANSON赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Licensed HANSON并不是自由软件，未经许可不能去掉HANSON相关版权
 * +----------------------------------------------------------------------
 * | Author: HANSON Team <hanson0622@126.com>
 * +----------------------------------------------------------------------
 */
public interface AdminLoginService {

    /**
     * PC登录
     */
    SystemLoginResponse login(SystemAdminLoginRequest request, String ip);

    /**
     * 用户登出
     */
    Boolean logout();

    /**
     * 根据Token获取对应用户信息
     */
    SystemAdminResponse getInfoByToken();

    /**
     * 获取管理员可访问目录
     * @return List<MenusResponse>
     */
    List<MenusResponse> getMenus();
}
